/* eslint-disable no-undef */
import request from '@/router/axios'

// 绑定应用
export const pageList = (params) => {
  return request({
    url: '/yitu-auth-user/pageList',
    method: 'POST',
    params
  })
}

// 机构懒加载列表
export const bindApps = (row) => {
  return request({
    url: '/yitu-auth-user/bindApps',
    method: 'post',
    data: row
  })
}

// 分页列表
export const deptList = (parentCode) => {
  return request({
    url: '/yitu-auth-user/deptList',
    method: 'POST',
    params: {
      parentCode
    }
  })
}
